//
//  sharButten.m
//  meituan
//
//  Created by apple on 16/6/17.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "sharButten.h"

@implementation sharButten
-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self setUpUI];
    }
    return self;

}
-(void)setUpUI
{
    self.sharImageView = [[UIImageView alloc]init];
    [self addSubview:self.sharImageView];
    
    self.sharLable = [[UILabel alloc]init];
    self.sharLable.font = [UIFont systemFontOfSize:13*Kscr];
    self.sharLable.textAlignment = NSTextAlignmentCenter;
    [self addSubview:self.sharLable];

}
-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.sharImageView.frame =CGRectMake((self.width-35*Kscr)/2, 0, 35*Kscr, 35*Kscr);
    self.sharLable.frame = CGRectMake(0, self.sharImageView.bottom+10*Kscr, self.width, 15*Kscr);

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
